package com.gmrz.webauthn.protocol.v1.schema;

import com.google.gson.annotations.SerializedName;

import java.util.Arrays;
import java.util.Map;


public class PublicKeyCredential
        implements Credential {
    @SerializedName("id")
    private String id;
    @SerializedName("type")
    private String type;
    @SerializedName("rawId")
    private byte[] rawId;
    @SerializedName("response")
    private AuthenticatorResponse response;
    @SerializedName("clientExtensionResults")
    private Map<String, Object> clientExtensionResults;

    public String getId() {
        return this.id;
    }

    public String getType() {
        return this.type;
    }

    public byte[] getRawId() {
        return this.rawId;
    }

    public void setRawId(byte[] rawId) {
        this.rawId = rawId;
    }

    public AuthenticatorResponse getResponse() {
        return this.response;
    }

    public void setResponse(AuthenticatorResponse response) {
        this.response = response;
    }

    public Map<String, Object> getClientExtensionResults() {
        return this.clientExtensionResults;
    }

    public void setClientExtensionResults(Map<String, Object> clientExtensionResults) {
        this.clientExtensionResults = clientExtensionResults;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String toString() {
        return
                "PublicKeyCredential [id=" + this.id + ", type=" + this.type + ", rawId=" + Arrays.toString(this.rawId) + ", response=" + this.response + ", clientExtensionResults=" + this.clientExtensionResults + "]";
    }
}
